package org.dyz.banana.platform.common.service.impl;

import org.dyz.banana.platform.common.vo.TPermissionVo;
import org.dyz.banana.platform.common.vo.TUserVo;

import java.util.List;

import org.dyz.banana.platform.common.mapper.TPermissionMapper;
import org.dyz.banana.platform.common.service.ITPermissionService;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dongyongzhao
 * @since 2021-04-12
 */
@Service
public class TPermissionServiceImpl extends ServiceImpl<TPermissionMapper, TPermissionVo> implements ITPermissionService {
	
	@Autowired
	private TPermissionMapper tPermissionMapper;
	
	public List<TPermissionVo> getPermissionByUsername(String username){
		return tPermissionMapper.getPermissionByUsername(username);
	}
}
